package wsz.sqlSession;

import wsz.pojo.Configuration;

import java.util.List;
import java.util.Map;

/**
 * @author wsz
 * @date 2021/10/1 1:17
 **/
public interface SqlSession {

    <T> T getMapper(Class<?> mapperClass);

    int insert(String statement, Object... params);

    int update(String statement, Object... params);

    int delete(String statement, Object... params);

    // 查询所有
   <E> List<E> selectList(String statementId, Object... params);

    <T> T selectOne(String statementId, Object... params);

    <K, V> Map<K, V> selectMap(String var1, Object... var2);

    Configuration getConfiguration();
}
